﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Framework;
namespace BO
{
    partial class Company
    {
        protected override void DataPortal_Fetch(object crit)
        {
            IConfigurationSource source = System.Configuration.ConfigurationSettings.GetConfig("activerecord") as IConfigurationSource;
            ActiveRecordStarter.Initialize(source, typeof(Company));
            var obj = ActiveRecordBase<Company>.FindAll();
         //   var ss = Cfg.GetSessionFactory("bjyxlA");
         //   var session = ss.OpenSession();
         //var c=   session.Load<Company>(2);
            base.DataPortal_Fetch(crit);
        }
     
    }
}
